Skip to main content

ISequentialWorkQueue<T>

Assembly: ServiceStack.Redis.dll
View Source
Declaration
public interface ISequentialWorkQueue<T> : IDisposable where T : class

Methods

Enqueue(String, T)

Enqueue item in priority queue corresponding to workItemId identifier

View Source
Declaration
void Enqueue(string workItemId, T workItem)
Parameters
TypeName
System.StringworkItemId
<T>workItem

PrepareNextWorkItem()

Prepare next work item id for dequeuing

View Source
Declaration
bool PrepareNextWorkItem()
Returns

System.Boolean

Dequeue(Int32)

Dequeue up to maxBatchSize items from queue corresponding to workItemId identifier. Once this method is called, ServiceStack.Redis.Support.Queue.ISequentialWorkQueue%601.Dequeue(System.Int32) will not return any items for workItemId until the dequeue lock returned is unlocked.

View Source
Declaration
ISequentialData<T> Dequeue(int maxBatchSize)
Returns

ServiceStack.Redis.Support.Queue.ISequentialData<T>

Parameters
TypeName
System.Int32maxBatchSize

Update(String, Int32, T)

Replace existing work item in workItemId queue

View Source
Declaration
void Update(string workItemId, int index, T newWorkItem)
Parameters
TypeName
System.StringworkItemId
System.Int32index
<T>newWorkItem

HarvestZombies()

View Source
Declaration
bool HarvestZombies()
Returns

System.Boolean